home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / oldunits_neweffects / oldunits_neweffects_mortarsparkles.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  6.6 KB  |  295 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_MORTARSPARKLES)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. local vzbzd1 = D3DXVECTOR3:new(0,0,0)
  9. desc.LocalPosition = vzbzd1
  10. vzbzd1:delete()
  11. desc.isAnimateTexture = false
  12. desc.RenderType = ENRENDERTYPE_GEOMETRY
  13.  
  14. Emitter = desc.PS.PSDescription
  15. Emitter.ParticleTypesNumber = 2
  16. local vzbzd2 = D3DXVECTOR3:new(0,0,0)
  17. Emitter.EmitterPosition = vzbzd2
  18. vzbzd2:delete()
  19. local vzbzd3 = D3DXVECTOR3:new(0,0,0)
  20. Emitter.EmitterDirection = vzbzd3
  21. vzbzd3:delete()
  22. Emitter.EmitterLifeTime = 1
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31. PT = Emitter.ParticleTypesParams[1]
  32. PT.IsEmitterLocked = false
  33. PT.DrawOrder = 2
  34. PT.Material = ENMAT_PARTICLE_LIGHT
  35.  
  36.  
  37. PT.TextureName = "environment_effect_explosion_sparkles2.dds"
  38.  
  39.  
  40.  
  41. PT.ParticlesPerSecond = 65.0;
  42. PT.InitialNumberOfParticles = 0.0;
  43. PT.BaseLifeTime = 2.0;
  44. PT.BaseLifeTimeVariance = 0.5;
  45. PT.BaseSpeed = 0.0;
  46. PT.BaseSpeedVariance = 0.0;
  47.  
  48. PT.TangentSpeed = 0.0;
  49. PT.TangentSpeedVariance = 0.0;
  50. local vzbzd4 = D3DXVECTOR3:new(1.0,0.0,0.0)
  51. PT.TangentDirection = vzbzd4
  52. vzbzd4:delete()
  53. PT.TangentAngleMin = 0.0;
  54. PT.TangentAngleMax = 6.28;
  55. PT.IsTangentDependOnBase = false;
  56.  
  57. PT.BaseAngle = 1.65;
  58. PT.BaseAngleVariance = 5.0;
  59. PT.BaseAngleSpeed = 1.0;
  60. PT.BaseAngleSpeedVariance = 1.0;
  61. PT.BaseAngleSpeedDirection = 0;
  62. local vzbzd5 = D3DXVECTOR3:new(0.0,0.0,1.0)
  63. PT.BaseDirection = vzbzd5
  64. vzbzd5:delete()
  65. local vzbzd6 = D3DXVECTOR3:new(0.0,0.0,0.0)
  66. PT.BaseDirectionVariance = vzbzd6
  67. vzbzd6:delete()
  68. local vzbzd7 = D3DXVECTOR3:new(0,0,0)
  69. PT.BasePosition = vzbzd7
  70. vzbzd7:delete()
  71. local vzbzd8 = D3DXVECTOR3:new(2,2,2)
  72. PT.BasePositionVariance = vzbzd8
  73. vzbzd8:delete()
  74. PT.BaseSize = 3.0;
  75. PT.BaseSizeVariance = 0.4;
  76.  
  77. -- color over time
  78. PT.ColorOverTimeR[1].TimePercent = 0.0;
  79. PT.ColorOverTimeR[1].Value = 1.0;
  80. PT.ColorOverTimeG[1].TimePercent = 0.0;
  81. PT.ColorOverTimeG[1].Value = 0.2;
  82. PT.ColorOverTimeB[1].TimePercent = 0.0;
  83. PT.ColorOverTimeB[1].Value = 1.0;
  84.  
  85. PT.ColorOverTimeR[2].TimePercent = 1.0;
  86. PT.ColorOverTimeR[2].Value = 1.0;
  87. PT.ColorOverTimeG[2].TimePercent = 1.0;
  88. PT.ColorOverTimeG[2].Value = 0.2;
  89. PT.ColorOverTimeB[2].TimePercent = 1.0;
  90. PT.ColorOverTimeB[2].Value = 1.0;
  91.  
  92. -- transparency over time
  93. PT.TransparencyOverTime[1].TimePercent = 0.0;
  94. PT.TransparencyOverTime[1].Value = 0.0;
  95.  
  96. PT.TransparencyOverTime[2].TimePercent = 0.05;
  97. PT.TransparencyOverTime[2].Value = 1.0;
  98.  
  99. PT.TransparencyOverTime[3].TimePercent = 1.0;
  100. PT.TransparencyOverTime[3].Value = 0.0;
  101.  
  102.  
  103. -- size over time
  104. PT.SizeOverTime[1].TimePercent = 0.0;
  105. PT.SizeOverTime[1].Value = 4.0;
  106.  
  107. PT.SizeOverTime[2].TimePercent = 1.0;
  108. PT.SizeOverTime[2].Value = 6.0;
  109.  
  110.  
  111. -- Speed over time
  112. PT.SpeedOverTime[1].TimePercent = 0.0;
  113. PT.SpeedOverTime[1].Value = 1.0;
  114.  
  115. PT.SpeedOverTime[2].TimePercent = 0.1;
  116. PT.SpeedOverTime[2].Value = 1.0;
  117.  
  118. PT.SpeedOverTime[3].TimePercent = 1.0;
  119. PT.SpeedOverTime[3].Value = 1.0;
  120.  
  121. -- Tangent Speed over time
  122. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  123. PT.TangentSpeedOverTime[1].Value = 4.0;
  124.  
  125. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  126. PT.TangentSpeedOverTime[2].Value = 4.0;
  127.  
  128.  
  129. -- GravityAcceleration over time
  130. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  131. PT.GravityAccelerationOverTime[1].Value = 8.0;
  132.  
  133. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  134. PT.GravityAccelerationOverTime[2].Value = -30.0;
  135.  
  136. -- AngleSpeed over time
  137. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  138. PT.AngleSpeedOverTime[1].Value = 0.0;
  139.  
  140. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  141. PT.AngleSpeedOverTime[2].Value = 0.0;
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180. PT = Emitter.ParticleTypesParams[2]
  181. PT.IsEmitterLocked = false
  182. PT.DrawOrder = 1
  183. PT.Material = ENMAT_SIMPLEPARTICLE
  184.  
  185.  
  186. PT.TextureName = "environment_effect_explosion_smoke12.dds"
  187.  
  188.  
  189.  
  190. PT.ParticlesPerSecond = 25.0;
  191. PT.InitialNumberOfParticles = 0.0;
  192. PT.BaseLifeTime = 2.0;
  193. PT.BaseLifeTimeVariance = 0.5;
  194. PT.BaseSpeed = 0.0;
  195. PT.BaseSpeedVariance = 0.0;
  196.  
  197. PT.TangentSpeed = 0.0;
  198. PT.TangentSpeedVariance = 0.0;
  199. local vzbzd9 = D3DXVECTOR3:new(1.0,0.0,0.0)
  200. PT.TangentDirection = vzbzd9
  201. vzbzd9:delete()
  202. PT.TangentAngleMin = 0.0;
  203. PT.TangentAngleMax = 6.28;
  204. PT.IsTangentDependOnBase = false;
  205.  
  206. PT.BaseAngle = 1.65;
  207. PT.BaseAngleVariance = 5.0;
  208. PT.BaseAngleSpeed = 1.0;
  209. PT.BaseAngleSpeedVariance = 1.0;
  210. PT.BaseAngleSpeedDirection = 0;
  211. local vzbzd10 = D3DXVECTOR3:new(0.0,0.0,1.0)
  212. PT.BaseDirection = vzbzd10
  213. vzbzd10:delete()
  214. local vzbzd11 = D3DXVECTOR3:new(0.0,0.0,0.0)
  215. PT.BaseDirectionVariance = vzbzd11
  216. vzbzd11:delete()
  217. local vzbzd12 = D3DXVECTOR3:new(0,0,0)
  218. PT.BasePosition = vzbzd12
  219. vzbzd12:delete()
  220. local vzbzd13 = D3DXVECTOR3:new(2,2,2)
  221. PT.BasePositionVariance = vzbzd13
  222. vzbzd13:delete()
  223. PT.BaseSize = 3.0;
  224. PT.BaseSizeVariance = 0.4;
  225.  
  226. -- color over time
  227. PT.ColorOverTimeR[1].TimePercent = 0.0;
  228. PT.ColorOverTimeR[1].Value = 1.0;
  229. PT.ColorOverTimeG[1].TimePercent = 0.0;
  230. PT.ColorOverTimeG[1].Value = 0.5;
  231. PT.ColorOverTimeB[1].TimePercent = 0.0;
  232. PT.ColorOverTimeB[1].Value = 1.0;
  233.  
  234. PT.ColorOverTimeR[2].TimePercent = 1.0;
  235. PT.ColorOverTimeR[2].Value = 0.5;
  236. PT.ColorOverTimeG[2].TimePercent = 1.0;
  237. PT.ColorOverTimeG[2].Value = 0.0;
  238. PT.ColorOverTimeB[2].TimePercent = 1.0;
  239. PT.ColorOverTimeB[2].Value = 1.0;
  240.  
  241. -- transparency over time
  242. PT.TransparencyOverTime[1].TimePercent = 0.0;
  243. PT.TransparencyOverTime[1].Value = 0.0;
  244.  
  245. PT.TransparencyOverTime[2].TimePercent = 0.05;
  246. PT.TransparencyOverTime[2].Value = 1.0;
  247.  
  248. PT.TransparencyOverTime[3].TimePercent = 1.0;
  249. PT.TransparencyOverTime[3].Value = 0.0;
  250.  
  251.  
  252. -- size over time
  253. PT.SizeOverTime[1].TimePercent = 0.0;
  254. PT.SizeOverTime[1].Value = 6.0;
  255.  
  256. PT.SizeOverTime[2].TimePercent = 1.0;
  257. PT.SizeOverTime[2].Value = 12.0;
  258.  
  259.  
  260. -- Speed over time
  261. PT.SpeedOverTime[1].TimePercent = 0.0;
  262. PT.SpeedOverTime[1].Value = 1.0;
  263.  
  264. PT.SpeedOverTime[2].TimePercent = 0.1;
  265. PT.SpeedOverTime[2].Value = 1.0;
  266.  
  267. PT.SpeedOverTime[3].TimePercent = 1.0;
  268. PT.SpeedOverTime[3].Value = 1.0;
  269.  
  270. -- Tangent Speed over time
  271. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  272. PT.TangentSpeedOverTime[1].Value = 4.0;
  273.  
  274. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  275. PT.TangentSpeedOverTime[2].Value = 4.0;
  276.  
  277.  
  278. -- GravityAcceleration over time
  279. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  280. PT.GravityAccelerationOverTime[1].Value = 8.0;
  281.  
  282. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  283. PT.GravityAccelerationOverTime[2].Value = -30.0;
  284.  
  285. -- AngleSpeed over time
  286. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  287. PT.AngleSpeedOverTime[1].Value = 0.0;
  288.  
  289. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  290. PT.AngleSpeedOverTime[2].Value = 0.0;
  291.  
  292.  
  293.  
  294.  
  295.